<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>谁</title>
    <base target="main_iframe">
    <link href="/css/admin/admin.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/js/admin/jquery-1.7.2.js"></script>
    <script type="text/javascript" src="/js/admin/admin.js"></script>
    <script type="text/javascript" src="/js/mybox.js"></script>
</head>

<body>
<table cellpadding="0" cellspacing="0" width="100%" height="100%" id="frm">
    <tr>
        <td class="logo" align="left" valign="top">☼</td>
        <td class="tms" align="left" valign="top">
            <div class="height15"></div>
            <div class="top_menu">
                <?php
                if($topmenus){
                    $ix=1;
                    foreach($topmenus as $v){
                ?>
                <a href="javascript:;" <?php if($ix === 1){ echo 'class="top_curr"'; }?>><?php echo $v['node_name'];?></a>
                <?php $ix++;}
                }?>
            </div>
            <div class="top_menu_line">&nbsp;</div>
            <div class="top_bar">
                <div class="fleft">
                    <span class="top_bar_b" title="后退" onClick="Gurl('backward')"></span>
                    <span class="top_bar_r" title="刷新" onClick="Gurl('refresh')"></span>
                    <span class="top_bar_f" title="前进" onClick="Gurl('forward')"></span>
                </div>
                <div class="fright lh30">
                    [<a href="javascript:;">欢迎：<?php echo session('admin_name');?></a>
                    <a href="javascript:;" onClick="$.fn.sbox({n:'a',title:'修改资料',width:400,height:230,ctype:'url',url:'<?php echo U('admin/index/pub_change_password');?>'})">修改密码</a>]
                    <a href="/" target="_blank">网站首页</a>
                    <a href="<?php echo U('admin/auth/logout');?>" target="_top">退出</a>&nbsp;
                </div>
            </div>
        </td>
    </tr>
    <tr>
        <td align="left" valign="top" width="155" height="100%" id="frm_left">
            <div class="left_menu">
                <?php if( ! empty($submenus)){foreach($submenus as $v){?>
                <!--菜单-->
                <div class="left_top_menu">
                    <?php if($v)foreach($v as $vv){?>
                    <div>
                        <p <?php if($vv['expand'] == '0'){ echo 'class="left_menu_on"'; }?>><?php echo $vv['node_name'];?></p>
                        <ul <?php if($vv['expand'] == '0'){ echo 'style="display:none;"'; }?>>
                            <?php if( ! empty($vv['_child'])){foreach($vv['_child'] as $vvv){ ?>
                            <li><a href="<?php echo U($vvv['m_c_a']);?>">&raquo;&nbsp;<?php echo $vvv['node_name'];?></a></li>
                            <?php }}?>
                        </ul>
                    </div>
                    <?php }?>
                </div>
                <!--//菜单-->
                <?php }}?>
            </div>
        </td>
        <td align="left" valign="top" height="100%" id="frm_right">
            <iframe src="<?php echo U('admin/index/home');?>" id="main_iframe" name="main_iframe" width="100%" height="100%" frameborder="0" scrolling="yes" style="overflow:visible;"></iframe>
        </td>
    </tr>
</table>
</body>
</html>